import { PermissionCreateDto, PermissionListDto, PermissionSingleDto, PermissionUpdateDto } from '../dtos/permission.dto';
import PermissionModel from '../models/permission.model';
import { PageRequest } from '../types';
import { BaseService } from './.service';

/**
 * 权限服务类
 */
export class PermissionService extends BaseService<PermissionModel, PermissionListDto, PermissionSingleDto, PermissionCreateDto, PermissionUpdateDto> {
  constructor() {
    super(PermissionModel, new PermissionSingleDto(), new PermissionListDto());
  }
}

/**
 * 权限服务实例
 */
export const permissionService = new PermissionService();
